import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import getters from './getters'
import theme from './modules/theme.js'

const store = createStore({
  getters,
  modules: {
    theme
  },
  plugins:[
    createPersistedState({
      key:'secret-zhu',
      paths:['theme']
    })
  ]
})

export default store
